//
//  list.m
//  homeWorkForQQMV
//
//  Created by 苗钧豪 on 16/8/12.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "list.h"
#import "Singer.h"
@implementation list
- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self getup];
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (list *)contentTitleWithDictionary:(NSDictionary *)dictionary {
    return [[self alloc]initWithDictionary:dictionary];
}
// 赋值没有找到对应key
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
// 取值没有找对对应key
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
- (void)getup {
    self.mvlist = [NSArray array];
    self.array = [NSMutableArray array];
    for (NSDictionary *dic in _mvlist) {
        Singer *singer = [Singer contentTitleWithDictionary:dic];
        [_array addObject:singer];
    }
}
@end
